//
//  PageControlView.h
//
//  Created by Hunk on 11-12-22.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol PageControlViewDelegate;
@interface PageControlView : UIView
{
    @private
    NSMutableArray              *_ellipseArray;
    
    NSInteger                   _numberOfPages;
    
    NSInteger                   _currentPage;
    
    UIColor                     *_ellipseColor;
    
    UIColor                     *_currentEllipseColor;
    
    id<PageControlViewDelegate> _delegate;
}   

@property (nonatomic) NSInteger numberOfPages;
@property (nonatomic) NSInteger currentPage;
@property (nonatomic, assign) id<PageControlViewDelegate> delegate;

@end

@protocol PageControlViewDelegate <NSObject>

- (void)pageControlView:(PageControlView *)pageControlView didSelectPageAtIndex:(NSInteger)index;

@end